package com.business.dao;

import com.business.domain.CarExcelVo;
import com.business.domain.CarModel;
import com.business.domain.CarModelExample;
import com.business.domain.CarModelVo;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository("carModelMapper")
public interface CarModelMapper {
    int countByExample(CarModelExample example);

    int deleteByExample(CarModelExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CarModel record);

    int insertSelective(CarModel record);

    List<CarModelVo> selectByExample(CarModelExample example);

    CarModelVo selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CarModel record, @Param("example") CarModelExample example);

    int updateByExample(@Param("record") CarModel record, @Param("example") CarModelExample example);

    int updateByPrimaryKeySelective(CarModel record);

    int updateByPrimaryKey(CarModel record);
    
    List<CarExcelVo> selectByAll();
    
    int insertCarModelBatch(List<CarModel> record);
}